package com.qf.dao;

import com.qf.pojo.OrderSetting;

import java.util.Date;
import java.util.HashMap;
import java.util.List;

/**
 * @author zhouhao
 * @create 2021-12-23 16:47
 */
public interface OrderSettingDao {

    //判断当前日期是否已经进行了预约设置
    long findCountByOrderDate(Date orderDate);

    //更新预约设置
    void updateNumber(OrderSetting orderSetting);

    //添加预约设置
    void add(OrderSetting orderSetting);

    //根据月份查询对应的预约设置数据
    List<OrderSetting> getOrderSettingByMonth(HashMap<String, String> condition);

    //检查用户所选择的预约日期是否已经提前进行了预约设置，如果没有设置则无法进行预约
    OrderSetting findOrderSettingByOrderDate(Date orderDate);

    //跟新以预约人数
    void updateReservations(OrderSetting orderSetting);
}
